<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class OATicket extends Model
{
    protected $table = 'ticket';

    //所有发票客户
    public static function getAllCustomer()
    {
        return self::query()
            ->where('status',1)
            ->select([
                'id',
                'short_name AS name'
            ])
            ->get()
            ->toArray();
    }
}
